package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备实时采集数据对象 equipment_real_data
 * 
 * @author DL
 * @date 2025-06-23
 */
public class EquipmentRealData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备ID */
    private String equipmentId;

    /** 采集参数码 */
    private String collectCode;

    /** 采集内容 */
    @Excel(name = "采集内容")
    private String collectValue;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipmentId(String equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentId() 
    {
        return equipmentId;
    }
    public void setCollectCode(String collectCode) 
    {
        this.collectCode = collectCode;
    }

    public String getCollectCode() 
    {
        return collectCode;
    }
    public void setCollectValue(String collectValue) 
    {
        this.collectValue = collectValue;
    }

    public String getCollectValue() 
    {
        return collectValue;
    }
    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentId", getEquipmentId())
            .append("collectCode", getCollectCode())
            .append("collectValue", getCollectValue())
            .append("collectTime", getCollectTime())
            .toString();
    }
}
